<%@tag pageEncoding="UTF-8" body-content="empty"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@attribute name="lista" required="true" type="java.util.List" %>
<%@attribute name="label" required="true" %>
<%@attribute name="nome" required="true" %>
<%@attribute name="classe" required="true" %>

<label for="${nome}">${label}</label>

<select name="${nome}" class="${classe}">
    <c:forEach var="elemento" items="${lista}" varStatus="status">
        <option value="${elemento.id}">${elemento.nome}</option>
    </c:forEach>
    

</select>